//用于从小程序向后端发送会员信息相关的请求，比如文件上传等
//src/utils/http.ts中导入http事件
import type { LoginResult, OSSItem } from '@/types/member'
import { http } from '@/utils/http'

//请求后端，用于获取OSS服务端签名数据
export const getOssParam = () => {
  return http<OSSItem>({
    method: 'GET',
    url: '/oss/policy',
  })
}

export const putMemberProfileAPI = (wxUser: LoginResult) => {
  return http<LoginResult>({
    method: 'POST',
    url: '/wxUser/profile/update',
    data: wxUser,
  })
}
